from rest_framework import serializers

from homepage_app.models import HomePage,FeatureService

class HomePageSerializer(serializers.ModelSerializer):
    '''轮播图序列化器'''
    class Meta:
        model = HomePage
        fields = '__all__'

class FeatureServiceSerializer(serializers.ModelSerializer):
    '''服务特色列化器'''
    class Meta:
        model = FeatureService
        fields = '__all__'